from django.contrib import admin

# Register your models here.
from .models import User, Addr, Area, VerCode


@admin.register(User)
class UserAdimin(admin.ModelAdmin):
    list_display = ['username', 'last_name','mobile','email']

@admin.register(Addr)
class AddrAdimin(admin.ModelAdmin):
    list_display = ['user','phone','name','province','city','country','address']

@admin.register(Area)
class AreaAdimin(admin.ModelAdmin):
    list_display = ['pid', 'name','level']

@admin.register(VerCode)
class VerCodeAdimin(admin.ModelAdmin):
    list_display = ['mobile', 'code','create_time']


